<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="assetic.filter.closure.api.class">Assetic\Filter\GoogleClosure\CompilerApiFilter</parameter>
        <parameter key="assetic.filter.closure.jar.class">Assetic\Filter\GoogleClosure\CompilerJarFilter</parameter>
        <parameter key="assetic.filter.closure.java">%assetic.java.bin%</parameter>
        <parameter key="assetic.filter.closure.timeout">null</parameter>
        <parameter key="assetic.filter.closure.compilation_level">null</parameter>
        <parameter key="assetic.filter.closure.language_in">null</parameter>
        <parameter key="assetic.filter.closure.formatting">null</parameter>
        <parameter key="assetic.filter.closure.warning_level">null</parameter>
    </parameters>

    <services>
        <service id="assetic.filter.closure.jar" class="%assetic.filter.closure.jar.class%">
            <tag name="assetic.filter" alias="closure" />
            <argument>%assetic.filter.closure.jar%</argument>
            <argument>%assetic.filter.closure.java%</argument>
            <call method="setTimeout"><argument>%assetic.filter.closure.timeout%</argument></call>
            <call method="setCompilationLevel"><argument>%assetic.filter.closure.compilation_level%</argument></call>
            <call method="setLanguage"><argument>%assetic.filter.closure.language_in%</argument></call>
            <call method="setFormatting"><argument>%assetic.filter.closure.formatting%</argument></call>
            <call method="setWarningLevel"><argument>%assetic.filter.closure.warning_level%</argument></call>
        </service>

        <service id="assetic.filter.closure.api" class="%assetic.filter.closure.api.class%">
            <tag name="assetic.filter" alias="closure" />
            <call method="setTimeout"><argument>%assetic.filter.closure.timeout%</argument></call>
            <call method="setCompilationLevel"><argument>%assetic.filter.closure.compilation_level%</argument></call>
            <call method="setLanguage"><argument>%assetic.filter.closure.language_in%</argument></call>
            <call method="setFormatting"><argument>%assetic.filter.closure.formatting%</argument></call>
            <call method="setWarningLevel"><argument>%assetic.filter.closure.warning_level%</argument></call>
        </service>
    </services>
</container>
